
import * as Const from "@/assets/dict"
export default {
  data(){
    return {
      dictConst:Const
    }

  },
  filters: {
    _filterType: (value,name) => {
      return selectDictLabel(Const[name],value) || "-"
    }
  }
}

// 回显数据字典
 function selectDictLabel(datas, value) {
	var actions = [];
	Object.keys(datas).map((key) => {
		if (datas[key].value == ('' + value)) {
			actions.push(datas[key].label);
			return false;
		}
	})
	return actions.join('');
}